# 使用java镜像，默认是从 Docker Hub官网去下载 java 镜像的
FROM java

VOLUME /tmp

# 将sea-server-eureka-0.0.1-SNAPSHOT.jar添加到容器中，并命名为sea-server-eureka.jar
ADD sea-server-eureka-0.0.1-SNAPSHOT.jar sea-server-eureka.jar

# 运行jar文件
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/sea-server-eureka.jar"]